NULL = 

AUTOMAKE_OPTIONS = subdir-objects

SUBDIRS = \
	$(NULL)

AM_CPPFLAGS = \
	$(WATRAYUC_CFLAGS) \
	-DPACKAGE_DATADIR=\""$(pkgdatadir)"\" \
	-include $(CONFIG_HEADER) \
	-I $(top_srcdir)/src \
	$(NULL)

BUILT_SOURCES = libwatrayuc.vala.stamp

libwatrayucdir = $(libdir)/watray/plugins

libwatrayuc_LTLIBRARIES = libwatrayuc.la

libwatrayuc_la_VALASOURCES = \
	watrayucdocumentview.vala \
	watrayucplugin.vala \
	watrayucproject.vala \
	watrayucprojectdialog.vala \
	watrayucprojectmanager.vala \
	$(NULL)

libwatrayuc_la_SOURCES = \
	$(libwatrayuc_la_VALASOURCES:.vala=.c) \
	$(libwatrayuc_la_VALASOURCES:.vala=.h) \
	$(NULL)

libwatrayuc.vala.stamp: $(libwatrayuc_la_VALASOURCES)
	$(VALAC) -C  --pkg config --pkg gtk+-2.0 --pkg gtksourceview-2.0 --pkg watray-1.0 --pkg gee-1.0 --basedir $(top_srcdir) --vapidir $(top_srcdir)/vapi --vapidir $(datadir)/watray/vapi $^
	touch $@

libwatrayuc_la_LDFLAGS = \
	$(PLUGIN_LIBTOOL_FLAGS) \
	-module -avoid-version

libwatrayuc_la_LIBADD = \
	$(WATRAYUC_LIBS) \
	$(NULL)

libwatrayuc_DATA = \
	uc.watrayplugin \
	$(NULL)

EXTRA_DIST = \
	$(libwatrayuc_la_VALASOURCES) \
	libwatrayuc.vala.stamp \
	uc.watrayplugin
	$(NULL)

DISTCLEANFILES = \
	$(NULL)

